//
//  Presenter.h
//  MV_C_P_VM
//
//  Created by Willian on 2021/4/30.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol PresenterDelegate <NSObject>

@optional
- (void)updateUsernameBgColor:(UIColor *)color;
- (void)updatePasswordBgColor:(UIColor *)color;
- (void)updateLoginEnabled:(BOOL)enabled;

@end

@interface Presenter : NSObject

@property (nonatomic, weak) id<PresenterDelegate> delegate;

- (void)updateUsername:(NSString *)username;
- (void)updatePassword:(NSString *)password;

@end

NS_ASSUME_NONNULL_END
